package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 安全设置 sys_security_setting
 *
 * @author ruoyi
 */
@Data
public class SysSecuritySetting extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    public Integer id;

    /**
     * 密码是否设置有效期
     */
    public Boolean pwdIsDate;
    /**
     * 密码有效期
     */
    public Integer pwdDate;
    /**
     * 密码最小长度
     */
    public Integer pwdMinLength;
    /**
     * 密码最大长度
     */
    public Integer pwdMaxLength;
    /**
     * 密码复杂度
     */
    public String pwdComplexity;
    /**
     * 密码错误次数是否限制
     */
    public Boolean pwdIsError;
    /**
     * 密码错误次数
     */
    public Integer pwdErrorNum;
    /**
     * 限制登录时间
     */
    public Integer pwdErrorTime;
    /**
     * 弱口令校验
     */
    public Boolean pwdIsWeak;

    /**
     * 是否开启登录保护
     */
    public Boolean loginIsProtect;
    /**
     * 登录保护时间
     */
    public Integer loginProtectTime;
    /**
     * 是否允许多人同时登录一个账号
     */
    public Boolean isSingleLogin;

    /**
     * 用户名是否支持修改
     */
    private Boolean changeIsName;
    /**
     * 初始密码是否修改
     */
    private Boolean changeIsPwd;

    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 用户主键
     */
    private Long userId;

    /**
     * ids
     */
    private List<Long> userIds;

    @Override
    public String toString() {
        return "SysSecuritySetting{" +
                "id=" + id +
                ", changeIsName=" + changeIsName +
                ", changeIsPwd=" + changeIsPwd +
                ", pwdIsDate=" + pwdIsDate +
                ", pwdDate=" + pwdDate +
                ", pwdMinLength=" + pwdMinLength +
                ", pwdMaxLength=" + pwdMaxLength +
                ", pwdComplexity='" + pwdComplexity + '\'' +
                ", pwdIsError=" + pwdIsError +
                ", pwdErrorNum=" + pwdErrorNum +
                ", pwdErrorTime=" + pwdErrorTime +
                ", pwdIsWeak=" + pwdIsWeak +
                ", loginIsProtect=" + loginIsProtect +
                ", isSingleLogin=" + isSingleLogin +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", loginProtectTime=" + loginProtectTime +
                "}";
    }


}
